package encoding.CharSet;

import java.io.UnsupportedEncodingException;

public class Translator {
	public static void main(String[] args) throws UnsupportedEncodingException{
		byte[] bytes = "中".getBytes("gbk");
		String wd = new String(bytes, "gbk");
		String wdutf8 = new String(wd.getBytes(), "utf-8");
		String wdgbk = new String(wd.getBytes(), "gbk");
		System.out.println(wd);
		System.out.println(wdutf8);
	}
}
